package net.koodar.forge.system.role.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import net.koodar.forge.mybatis.doman.BaseEntity;

/**
 * 角色表
 *
 * @author liyc
 */
@Data
@TableName("sys_role")
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class Role extends BaseEntity<Role> {

	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	/**
	 * 角色名
	 */
	@TableField("name")
	private String name;

	/**
	 * 角色编码
	 */
	@TableField("code")
	private String code;

	/**
	 * 角色描述
	 */
	@TableField("description")
	private String description;
}
